#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
int main()
{
	int i, j, k;
	char c;
	scanf("%c", &c);
	for (i = 1; i <= 3; i++)
	{
		for (j = 0; j < 3 - i; j++)
		{
			printf(" ");
		}
		for (k = 1; k <= 2 * i - 1; k++)
		{
			printf("%c", c);
		}
		printf("\n");
	}
	for (i = 2; i >= 1; i--)
	{
		for (j = 0; j < 3 - i; j++)
		{
			printf(" ");
		}
		for (k = 1; k <= 2 * i - 1; k++)
		{
			printf("%c", c);
		}
		printf("\n");
	}
	return 0;
}